package PaperManagerGUI;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JPanel;

public class DrawPaperNode extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String PaperName = null;
	private int row = 0;
	private int col = 0;
	public DrawPaperNode(String paperName,int x,int y){
		this.PaperName = paperName;
		this.row = x;
		this.col = y;
	}
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
			
		g.drawString(PaperName,row,col);
		g.setColor(Color.YELLOW);
		//g.fillOval(row,col,30,30);
		g.fillRect(row,col,30,30);
		//g.fillOval(6*x/5,8*y/5,3*x/5,3*y/5);
		
	}

}
